﻿using System.IO;
namespace Xbb.Common.Extension
{
    public static class PathExtension
    {
        public static string GetExtensionExtension(string fileName)
        {
            var invalidChars = Path.GetInvalidFileNameChars();
            foreach (var c in invalidChars)
            {
                fileName = fileName.Replace(c, '_');
            }
            return Path.GetExtension(fileName);
        }
    }
}